//LiuZh 2017-06-27
import React, { Component } from 'react';

import {
	View,
  Image,
  StyleSheet,
  Text,
  WebView
} from 'react-native';

import InitDB from 'shequnsiweiapp/src/core/database/InitDB.js';

import { Loading, EasyLoading } from 'react-native-easy-loading';


export default class Hongjijin extends Component{

	static navigationOptions = {
    title: '鸿基金',
  };
 

	constructor(props)
{
	super(props);
	let url =  InitDB.getStoreacvtdis('ACVT_CODE="hongjijin"')[0].OPT_VAL;
	this.state={

		url :url
	}
}
	render() {
		return (
			<View style={styles.body}>	 
 				<Loading />
		 <WebView   source={{uri:this.state.url}}  onLoad={this.onLoadEnd.bind(this)} />
			</View>
		)

	}

	





componentDidMount(){
	
	Promise.resolve().then(EasyLoading.show('loading...',1000*10));
}

onLoadEnd(){
	EasyLoading.dismis();
	
}
}

const styles = StyleSheet.create({

	body: {
		flex: 1,
		backgroundColor: '#FAFAFA',
	},
	top: {
		height: 260,
		justifyContent: 'center',
		alignItems: 'center',
	},
	imgBody: {
		height: 90,
		width: 90,
		borderRadius: 8,
		backgroundColor: '#00F',
		marginBottom: 8,
		justifyContent: 'center',
		alignItems: 'center'
	},
	img: {
		height: 80,
		width: 80,
	},
	itemBody: {
		flexDirection: 'row',
		paddingLeft:8,
		paddingRight: 8,
		justifyContent: 'center',
		alignItems: 'center',
		backgroundColor: '#FFF',
		height: 50,
		marginBottom: 1,
	}

});
